package com.student.demo.repository;

import org.springframework.data.jpa.repository.JpaRepository;

import com.student.demo.entity.Teacher;

public interface TeacherRepository extends JpaRepository<Teacher, Integer>{

	Teacher findBybId(Integer id);

	Teacher findByBNumber(String bname);

}
